import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    tagsView,
    permission,
    settings
  },
  getters, //store的计算属性，返回新变量
/*   state: {}, 
  //mutations修改仓库 store中的状态的唯一办法 类似于dao层
  mutations:{},
  //用来解决异步流程来改变state数据。类似于service层
  action: {}, */


})

export default store
